package com.dk.mapper;

import com.dk.pojo.Order;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OrderMapper {

    int queryRows();
    Order queryOrderById(@Param("id") String id);
    List<Order> queryOrders(@Param("begin")int begin,@Param("limit")int limit,@Param("state")int state);
    List<Order> queryOrdersByUser(@Param("state")int state,@Param("uid")String uid);
    void saveOrder(@Param("order")Order order);
    void updateOrder(@Param("id")String id,@Param("price")double price,@Param("remark")String remark);
    void updateOrderRid(@Param("id")String id,@Param("rid")String rid);
    void updateOrderState(@Param("id")String id,@Param("state")int state);

}
